<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.seasar.org/cubby/tags" prefix="t"%>
<%@ taglib uri="http://www.seasar.org/cubby/functions" prefix="f"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Your entrance - heya</title>
	<script type="text/javascript" src="/b/js/jquery-1.3.2.js"></script>
	<script>
		$(function() {
			$("#logout").click(function(e) {
				$("#logout_form").submit();
			});
			$("#newgroup").click(function(e) {
				var url = "/newgroup/";
				location.href = url;
			});
		});
	</script>
</head>
<body>
	<h1>Your entrance.</h1>
	<h2>${action.aname}さん、はろにちは</h2>
	<c:import url="/b/common/errors.jsp" />
	<c:import url="/b/common/notice.jsp" />
	<form id="logout_form" method="post" action="./logout">
		<input type="button" id="logout" name="logout" value="Log out" />
	</form>
	<input type="button" id="newgroup" name="newgroup" value="新しいGroupを作る" />
	<fieldset>
		<legend>Joined rooms</legend>
	</fieldset>
</body>
</html>